package com.zzr.zzrbackend.mapper;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LiveChatRoomMapper {
    Integer getInitiatorIdByRoomId(Integer roomId);

    Integer getRecipientIdByRoomId(Integer roomId);

    Integer getJurisdictionByUserIdAndRoomId(Integer userId, Integer roomId);

    List<Integer> getAllRoomByUserId(Integer userId);

    Integer selectIdByTwoUser(Integer userId, Integer toUserId);

    Integer insertLiveChat(Integer userId, Integer toUserId, Long time);
}
